import type { ChangeEvent } from "react"

export type InputChangeEvent = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>

export interface BaseResponse<T = any> {
  success: boolean
  data?: T
  message?: string
}

export interface PaginationParams {
  page: number
  pageSize: number
}

export interface SelectOption {
  label: string
  value: string | number
}

export interface FileReaderResult extends FileReader {
  result: string
}
